UW - CSE - 11 - 05 - 02 2 nd May 2011 ( Revised 5 th October 2011 )
نویسندگان
چکیده
Developers often copy, or clone, code in order toreuse or modify functionality. When they do so, they also clone any bugs in the original code. Or, different developers mayindependently make the same mistake. As one example of abug, multiple products in a product line may use a componentin a similar wrong way. This paper makes two contributions. First, it presents an empirical study of cloned buggy code. In alarge industrial product line, about 4% of the bugs areduplicated across more than one product or file. In three opensource projects (the Linux kernel, the Git version control system, and the PostgreSQL database) we found 282, 33, and33 duplicated bugs, respectively. Second, this paper presents atool, CBCD, that searches for code that is semanticallyidentical to given buggy code. CBCD tests graph isomorphism over the Program Dependency Graph (PDG) representationand uses four optimizations. We evaluated CBCD by searchingfor known clones of buggy code segments in the three projectsand compared the results with text-based, token-based, and AST-based code clone detectors, namely Simian, CCFinder,and CloneDr. The results of the evaluation show that CBCD isapplicable for its principal use: it is fast when searching forpossible clones of the buggy code in a large system and it is more precise than the other code clone detectors. KeywordsValidation, Debugging aids
منابع مشابه
Detection of Subclinical Ketosis in Dairy Cows
Received: Revised: Accepted: July 16, 2011 October 02, 2011 October 24, 2011
متن کاملPlasma Orexin-A Levels in COPD Patients with Hypercapnic Respiratory Failure
Orexins have previously been shown to promote wakefulness, regulate lipid metabolism and participate in energy homeostasis. The aim of the study was to determine the relationship between plasma orexin-A and body composition in COPD in-patients with hypercapnic respiratory failure. 40 patients with hypercapnic respiratory failure and 22 healthy individuals were enrolled prospectively in this stu...
متن کاملInference of abrupt changes in noisy geochemical records using transdimensional changepoint models
Article history: Received 5 April 2011 Received in revised form 8 September 2011 Accepted 11 September 2011 Available online 5 October 2011 Editor: T.M. Harrison
متن کاملProceedings of the 11 th International Conference on GeoComputation University College London , UK 20 th – 22 nd July 2011
متن کامل
Dual fermion dynamical cluster approach for strongly correlated systems
S.-X. Yang,1 H. Fotso,1 H. Hafermann,2 K.-M. Tam,1 J. Moreno,1 T. Pruschke,3 and M. Jarrell1 1Department of Physics and Astronomy, Louisiana State University, Baton Rouge, Louisiana 70803, USA 2Centre de Physique Théorique, École Polytechnique, CNRS, FR-91128 Palaiseau Cedex, France 3Department of Physics, University of Göttingen, GE-37077 Göttingen, Germany (Received 10 May 2011; revised manus...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011